<template>
  <div class="history">
    <div class="history_boderTop">
      <div class="history_boderTop_p">
        {{ formattedDate }}
      </div>
      <div class="history_boderTop_hr">
        <hr style="font-weight: 700" />
      </div>
    </div>
  </div>
</template>
  
  <script>
export default {
  name: "DateComponent",
  props: {
    mydate_month: {
      type: Number,
      required: true,
    },
    mydate_day: {
      type: Number,
      required: true,
    },
  },
  computed: {
    formattedDate() {
      // 格式化日期
      return `${this.mydate_month * 1} 月${this.mydate_day - 1} 日`;
    },
  },
};
</script>
  
  <style lang="less" scoped>
.history_boderTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 0 15px;

  .history_boderTop_hr {
    flex: 1;
    margin-left: 15px;
  }
}
</style>
  